<include file="Common:header" />
<div id="register">
    <div class="indexh" style="margin-bottom:20px">
        <div class="tabon">快速注册</div>
        <div class="taboff"><a href="<{:SITE_URL}>/login">登陆微博</a></div>
        <div class="taboff"><a href="<{:SITE_URL}>/reset">忘记密码</a></div>
    </div>
    <table border="0" style="width:90%;margin-left:40px">
    <tr><td valign="top">
    <h3 class="tt">欢迎您加入<{$site[sitename]}>，请完整填写以下信息进行注册。</h3>
    <php>if($user[user_id]){</php>
        <div class="invite">
            <div class="fleft"><img src="<{:sethead($user[user_head])}>"></div>
            <div class="fleft" style="margin-left:10px"><p><b><{$user[nickname]}></b><small>(@<{$user[user_name]}>)</small></p><p> 邀请您加入<{$site[sitename]}>，注册后你们将互相收听！</p></div>
            <div class="clearline"></div>
        </div>
    <php>}</php>
    <php>if($site['closereg']==3){</php>
        <div class="invite">管理员开启了邀请注册，您必须正确输入邀请码才能注册！</div>
    <php>}</php>
    <form method="post" action="##" class="lf">
    <table class="regtb">
        <php>if($site['closereg']==3){</php>
        <tr height="50px">
            <th><label class="label_input" for="invitecode">邀请码</label></th>
            <td width="210px"><input tabindex="1" type="text" id="invitecode" name="invitecode" class="input_text" value="" style="ime-mode:disabled"/></td>
            <td></td>
        </tr>
        <php>}</php>
        <tr height="50px">
            <th><label class="label_input" for="username">用户帐号</label></th>
            <td width="210px"><input tabindex="2" type="text" id="username" name="username" class="input_text" value="" maxlength="12"/></td>
            <td>帐户名长度最多 6 个汉字或 12 个字符</td>
        </tr>
        <tr height="30px">
            <td></td>
            <td colspan="2"><span class="grey">您的网址：<{:SITE_URL}>/<span id="wbadd"></span></span></td>
        </tr>
        <tr height="50px">
            <th><label class="label_input" for="mailadres">电子邮箱</label></th>
            <td><input tabindex="4" type="text" id="mailadres" name="mailadres" class="input_text" value="" /></td>
            <td>电子邮箱是找回密码的重要途径，请正确填写</td>
        </tr>
        <tr height="50px">
            <th><label class="label_input" for="password1">注册密码</label></th>
            <td><input tabindex="5" type="password" id="password1" name="password1" class="input_text" value="" maxlength="20" style="ime-mode:disabled" onpaste="return false;"/></td>
            <td>密码长度4-20位，字母区分大小写</td>
        </tr>
        <tr height="50px">
            <th><label class="label_input" for="password2">确认密码</label></th>
            <td><input tabindex="6" type="password" id="password2" name="password2" class="input_text" value="" maxlength="20" style="ime-mode:disabled" onpaste="return false;"/></td>
            <td>请再次输入一次注册密码，以确保正确</td>
        </tr>
        <tr height="50px">
            <td></td>
            <td colspan="2"><php>if($user[user_id]){</php><input type="hidden" id="inviteuid" value="<{$user[user_id]}>" /><php>}</php>
            <input tabindex="7" type="button" class="button1" value="立即注册" onclick="check_register();"/></td>
        </tr>
    </table>
    </form>
    </td></tr>
    </table>
</div>
<script type="text/javascript">
$("#username").keyup(function(){
    $('#username').val($('#username').val().replace(/\s/ig,""));
    $('#wbadd').html($('#username').val());
    $('#username').val($('#username').val().slice(0,12));
    $('#wbadd').html($('#username').val().slice(0,12));
});
$("#mailadres").keyup(function() {$('#mailadres').val($('#mailadres').val().replace(/\s/ig,""));});
$("#password1").keyup(function() {$('#password1').val($('#password1').val().replace(/\s/ig,""));});
$("#password2").keyup(function() {$('#password2').val($('#password2').val().replace(/\s/ig,""));});
</script>
<include file="Common:foot" />